package net.zrnecko.bowlingnumbers.session;

import net.zrnecko.bowlingnumbers.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("playerHome")
public class PlayerHome extends EntityHome<Player> {

	public void setPlayerId(Long id) {
		setId(id);
	}

	public Long getPlayerId() {
		return (Long) getId();
	}

	@Override
	protected Player createInstance() {
		Player player = new Player();
		return player;
	}

	public void wire() {
	}

	public boolean isWired() {
		return true;
	}

	public Player getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
